import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import fastClick from 'fastclick'
import VueLazyLoad from 'vue-lazyload'

require('./common/iconfont')
// 自定义toast组件
import toast from 'components/common/toast'
Vue.use(toast)
// 解决移动端300ms延时问题，使用fastClick插件
fastClick.attach(document.body)

// 使用图片懒加载
Vue.use(VueLazyLoad,{
  loading:require('assets/img/common/placeholder.webp'),
  attempt:10
})

Vue.config.productionTip = false

Vue.prototype.$bus = new Vue() //创建事件总线

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

